Encoding

Character encoding.

The #GtkSourceEncoding boxed type represents a character encoding. It is used for example by #GtkSourceFile. Note that the text in GTK widgets is always encoded in UTF-8.

Constructors

this
this(GtkSourceEncoding* gtkSourceEncoding, bool ownedRef)

Sets our main struct and passes it to the parent class.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

copy
Encoding copy()

Used by language bindings.

free
void free()

Used by language bindings.

getCharset
string getCharset()

Gets the character set of the #GtkSourceEncoding, such as "UTF-8" or "ISO-8859-1".

getEncodingStruct
GtkSourceEncoding* getEncodingStruct(bool transferOwnership)

Get the main Gtk struct

getName
string getName()

Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".

getStruct
void* getStruct()

the main Gtk struct as a void*

toString
string toString()

Static functions

getAll
ListSG getAll()

Gets all encodings.

getCurrent
Encoding getCurrent()

Gets the #GtkSourceEncoding for the current locale.

getDefaultCandidates
ListSG getDefaultCandidates()

Gets the list of default candidate encodings to try when loading a file.

getFromCharset
Encoding getFromCharset(string charset)

Gets a #GtkSourceEncoding from a character set such as "UTF-8" or "ISO-8859-1".

getType
GType getType()
getUtf8
Encoding getUtf8()

Variables

gtkSourceEncoding
GtkSourceEncoding* gtkSourceEncoding;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta